package com.manish.tabdemo;

import com.manish.tabdemo.R;
import com.manish.tabdemo.R.layout;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class CittaActivity extends Activity{

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_citta);
		

		
		
	}
	
	@Override
	public void onBackPressed() {
		System.out.println("***back*");
		CittaActivity.super.onBackPressed();
	}
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) 
	{
		System.out.println("****event****"+event+"****"+keyCode);
		if(keyCode == KeyEvent.KEYCODE_BACK)
		{

               finish();
			return true;
		}
		return super.onKeyDown(keyCode, event);
	}
}